package com.sky;

import com.sky.service.SetmealService;
import com.sky.service.impl.SetmealServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

import javax.servlet.Filter;

@SpringBootApplication//默认扫描和当前子包，@ComponentScan用来扫描要交给IOC容器的类
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@EnableCaching//加了@Import注解
@EnableScheduling//开启定时任务调度，注入第三方的bean到IOC中
public class SkyApplication  {
    public static void main(String[] args) {
        SpringApplication.run(SkyApplication.class, args);
        log.info("server started");
    }
}
